Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ros2ForUnity asset and add service hanling #343

Merged
merged 5 commits into from
Aug 9, 2024
Merged

Conversation

kielczykowski-rai
Copy link
Contributor

Description

The PR introduces an update to the Ros2ForUnity version. With the latest version of R2FU, a ROS2 service implementation is available and the functionality is also provided to AWSIM.

Details

The PR introduces new Ros2ForUnity asset both on Windows and Ubuntu. It required extending the SimulatorRos2Node script with new functions:

  • CreateService
  • RemoveService
  • CreateClient
  • RemoveClient

The versions which were used for asset generation can be found below:

For given AWSIM version, the following messages were generated using R2FU:

Evidence

The following videos show AWSIM reacting to ROS2 services. The video below shows registering a service in Unity and calling it from PS terminal on Windows.

AWSIM-WINDOWS-R2FU-SERVICES.mp4

The video below shows registering a service in Unity and calling it from the terminal in Ubuntu

AWSIM-UBUNTU-R2FU-SERVICES.webm

The video below presents how Ros2 service and client can interact inside Unity (Ubuntu platform)

UnityTestServiceAndClientCall.webm

Copy link
Collaborator

@mackierx111 mackierx111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I could also use ros2 service communication. LGTM

@mackierx111 mackierx111 merged commit 2f2490b into main Aug 9, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants